Fix problems with sticky handling
authorMatthias Clasen <mclasen@redhat.com>
Wed, 28 Dec 2011 16:20:47 +0000 (11:20 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 28 Dec 2011 16:20:47 +0000 (11:20 -0500)
commit01320e5773768827b5754470d3ed52392151f67a
tree29518d1a28786bf29e5c164844f646eead879d7c
parent19b47b931ecc923b1bf57597c96ff3399d292ff8
Fix problems with sticky handling

Reading a card32 property into a long may lead to undefined high
bits, so mask them off. Also, make the conditions for setting and
unsetting the stick flag opposites, to avoid unintended changes.
Patch by John Lindgren, bug 666842
gdk/x11/gdkdisplay-x11.c